home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17194 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.slip.net!usenet
  2. From: mavrick@slip.net (Mavrick)
  3. Newsgroups: comp.lang.c++
  4. Subject: Trapping Ctrl-Alt-Del
  5. Date: Sun, 14 Apr 1996 09:45:00 GMT
  6. Organization: Slip.Net
  7. Message-ID: <4kqh9r$fap@ms.slip.net>
  8. NNTP-Posting-Host: sf-pm3-26-90.dialup.slip.net
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. I am running a network of 50 pcs in a class room where students always
  12. manage to bypass the provided computer curriculum program by rebooting
  13. (Ctrl-Alt-Del) their way out, and fool around the hard disks.  Some
  14. also found out that Ctrl-C or Ctrl-break would do the same trick.  I
  15. need to fine tune the menu program I wrote 2 years ago and  implement
  16. a keyboard trapping algorithm to weed out the Ctrl-Alt-Del and Ctrl-C
  17. /Ctrl-break.  Any other keys I can easily trap by scanning for their
  18. scan codes; however, those 3 combos work differrently. 
  19.  
  20. Could someone write me a sample short program in C / C++ (I'm using
  21. Borland C 5.0) that would do the trick.  Something as simple as
  22. printing 'Hello' every time any of  those combos are pressed.  Perhaps
  23. I could return the favor by inviting you for lunch should you ever
  24. come across the Bay Area (Northern California). 
  25.  
  26. Thank You
  27. Marvick W C
  28.  
  29. mavrick@slip.net
  30.  
  31.